import axios from 'axios'

export const getData = (url) => {
  return axios
    .get(url)
    .then((res) => {
      return res.data
    })
    .catch((err) => {
      throw new Error(err.message)
    })
}
